<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen; http://apigen.org" />

	<title>Class Nette\Web\Ftp</title>

	<link rel="stylesheet" href="resources/style.css?v=2011071314" type="text/css" media="all" />
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="Nette Framework API documentation" />
	<script type="text/javascript" src="resources/combined.js"></script>
	<script type="text/javascript" src="allclasses.js"></script>
</head>

<body>
<div id="left">
	<a href="allclasses.html">All Classes</a>

	<h3>Namespaces</h3>
	<ul>
		<li><a href="namespace-none.html">none</a>
		</li>
		<li><a href="namespace-Nette.html">Nette</a>
		</li>
		<li><a href="namespace-Nette.Application.html">Nette\Application</a>
		</li>
		<li><a href="namespace-Nette.Caching.html">Nette\Caching</a>
		</li>
		<li><a href="namespace-Nette.Collections.html">Nette\Collections</a>
		</li>
		<li><a href="namespace-Nette.Config.html">Nette\Config</a>
		</li>
		<li><a href="namespace-Nette.Forms.html">Nette\Forms</a>
		</li>
		<li><a href="namespace-Nette.IO.html">Nette\IO</a>
		</li>
		<li><a href="namespace-Nette.Loaders.html">Nette\Loaders</a>
		</li>
		<li><a href="namespace-Nette.Mail.html">Nette\Mail</a>
		</li>
		<li><a href="namespace-Nette.Reflection.html">Nette\Reflection</a>
		</li>
		<li><a href="namespace-Nette.Security.html">Nette\Security</a>
		</li>
		<li><a href="namespace-Nette.Templates.html">Nette\Templates</a>
		</li>
		<li class="active"><a href="namespace-Nette.Web.html">Nette\Web</a>
		</li>
		<li><a href="namespace-PHP.html">PHP</a>
		</li>
	</ul>

	<hr />

	<h3>Classes</h3>

	<ul>
		<li class="active"><a href="Nette.Web.Ftp.html">Ftp</a></li>
		<li><a href="Nette.Web.Html.html">Html</a></li>
		<li><a href="Nette.Web.HttpContext.html">HttpContext</a></li>
		<li><a href="Nette.Web.HttpRequest.html">HttpRequest</a></li>
		<li><a href="Nette.Web.HttpResponse.html">HttpResponse</a></li>
		<li><a href="Nette.Web.HttpUploadedFile.html">HttpUploadedFile</a></li>
		<li><a href="Nette.Web.Session.html">Session</a></li>
		<li><a href="Nette.Web.SessionNamespace.html">SessionNamespace</a></li>
		<li><a href="Nette.Web.Uri.html">Uri</a></li>
		<li><a href="Nette.Web.UriScript.html">UriScript</a></li>
		<li><a href="Nette.Web.User.html">User</a></li>
	</ul>

	<h3>Interfaces</h3>

	<ul>
		<li><a href="Nette.Web.IHttpRequest.html">IHttpRequest</a></li>
		<li><a href="Nette.Web.IHttpResponse.html">IHttpResponse</a></li>
		<li><a href="Nette.Web.IUser.html">IUser</a></li>
	</ul>

	<h3>Exceptions</h3>

	<ul>
		<li><a href="Nette.Web.FtpException.html">FtpException</a></li>
	</ul>
</div>

<div id="right">
	<form action="http://www.google.com/cse" id="search" onsubmit="if(this.q.value.indexOf('more:')==-1)this.q.value+=' more:api'">
		<input type="hidden" name="cx" value="011549293477758430224:vxofa9ufnhc" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" class="text" /><input type="submit" value="Search" />
	</form>

<div id="navigation">
	<ul>
		<li><a href="overview.html" title="Summary of all namespaces">Overview</a></li>
		<li><a href="namespace-Nette.Web.html" title="Summary of Nette\Web">Namespace</a></li>
		<li class="active">Class</li>
		<li><a href="elements.html">Elements</a></li>
	</ul>
</div>

<div id="content">
	<div id="classSummary">
		<p>namespace <a href="namespace-Nette.Web.html">Nette\Web</a></p>

		<h1>Class Ftp</h1>

		<div class="classDescription">
		
<p>Access to a FTP server.</p>

<pre>
<span class="php-var">$ftp</span> = <span
class="php-keyword1">new</span> Ftp;
<span
class="php-var">$ftp</span>-&gt;connect(<span
class="php-quote">'ftp.example.com'</span>);
<span
class="php-var">$ftp</span>-&gt;login(<span
class="php-quote">'anonymous'</span>, <span
class="php-quote">'example@example.com'</span>);
<span
class="php-var">$ftp</span>-&gt;get(<span
class="php-quote">'file.txt'</span>, <span
class="php-quote">'README'</span>, Ftp::ASCII);
</pre>

		</div>

		<dl class="tree">
			<dd style="padding-left:0px">
				<a href="Nette.Object.html">Nette\Object</a>
				
			</dd>
			<dd style="padding-left:30px">
				<img src="resources/inherit.gif" alt="extended by" />
<b>Nette\Web\Ftp</b>				
			</dd>
		</dl>



		<div class="classInfo">
			
				<b>Author:</b> David Grudl<br />
			<b>Located at</b> <a href="source-Web.Ftp.php.html#18">/Web/Ftp.php</a><br />
		</div>
	</div>


	<div id="methodSummary">
		<table class="summary">
		<caption>Method Summary</caption>
		<tr data-order="1 __construct" id="___construct">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___construct">#</a>
			<code class="nowrap">
				<a href="source-Web.Ftp.php.html#53" title="go to source code"><b>__construct</b></a>(
			)</code>

			<div class="short">
				
			</div>

			<div class="detailed">
				





			</div>
			</td>
		</tr>
		<tr data-order="1 __call" id="___call">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				mixed
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___call">#</a>
			<code class="nowrap">
				<a href="source-Web.Ftp.php.html#64" title="go to source code"><b>__call</b></a>(
					string
					<var>$name</var>, 
					array
					<var>$args</var>
			)</code>

			<div class="short">
				
<p>Magic method (do not call directly).</p>

			</div>

			<div class="detailed">
				
<p>Magic method (do not call directly).</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$name</code> string method name<br />
						<code>$args</code> array arguments<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">mixed </div>

					<h4>Throws</h4>
					<div class="smallList">
						<a href="MemberAccessException.html">MemberAccessException</a> <br />
						<a href="Nette.Web.FtpException.html">FtpException</a> <br />
					</div>

			</div>
			</td>
		</tr>
		<tr data-order="1 reconnect" id="_reconnect">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_reconnect">#</a>
			<code class="nowrap">
				<a href="source-Web.Ftp.php.html#127" title="go to source code"><b>reconnect</b></a>(
			)</code>

			<div class="short">
				
<p>Reconnects to FTP server.</p>

			</div>

			<div class="detailed">
				
<p>Reconnects to FTP server.</p>






			</div>
			</td>
		</tr>
		<tr data-order="1 fileExists" id="_fileExists">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				bool
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_fileExists">#</a>
			<code class="nowrap">
				<a href="source-Web.Ftp.php.html#141" title="go to source code"><b>fileExists</b></a>(
					string
					<var>$file</var>
			)</code>

			<div class="short">
				
<p>Checks if file or directory exists.</p>

			</div>

			<div class="detailed">
				
<p>Checks if file or directory exists.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$file</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">bool </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 isDir" id="_isDir">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				bool
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_isDir">#</a>
			<code class="nowrap">
				<a href="source-Web.Ftp.php.html#153" title="go to source code"><b>isDir</b></a>(
					string
					<var>$dir</var>
			)</code>

			<div class="short">
				
<p>Checks if directory exists.</p>

			</div>

			<div class="detailed">
				
<p>Checks if directory exists.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$dir</code> string <br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">bool </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 mkDirRecursive" id="_mkDirRecursive">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_mkDirRecursive">#</a>
			<code class="nowrap">
				<a href="source-Web.Ftp.php.html#171" title="go to source code"><b>mkDirRecursive</b></a>(
					string
					<var>$dir</var>
			)</code>

			<div class="short">
				
<p>Recursive creates directories.</p>

			</div>

			<div class="detailed">
				
<p>Recursive creates directories.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$dir</code> string <br />
					</div>



			</div>
			</td>
		</tr>

		</table>
	</div>


	<h2>Methods Inherited From <a href="Nette.Object.html#methodSummary">Nette\Object</a></h2>
	<div class="box"><code>
		<a href="Nette.Object.html#_getClass" class="deprecated">getClass()</a>, <a href="Nette.Object.html#_getReflection">getReflection()</a>, <a href="Nette.Object.html#___call">__call()</a>, <a href="Nette.Object.html#___callStatic">__callStatic()</a>, <a href="Nette.Object.html#_extensionMethod">extensionMethod()</a>, <a href="Nette.Object.html#___get">__get()</a>, <a href="Nette.Object.html#___set">__set()</a>, <a href="Nette.Object.html#___isset">__isset()</a>, <a href="Nette.Object.html#___unset">__unset()</a>
	</code></div>


	<div id="constantSummary">
		<table class="summary">
		<caption>Constant Summary</caption>
		<tr data-order="ASCII" id="ASCII">
			<td align="right" width="1%"><code><b>ASCII</b></code></td>
			<td><code><span class="php-num">1</span></code> <a href="#ASCII" class="anchor">#</a></td>
		</tr>
		<tr data-order="TEXT" id="TEXT">
			<td align="right" width="1%"><code><b>TEXT</b></code></td>
			<td><code><span class="php-num">1</span></code> <a href="#TEXT" class="anchor">#</a></td>
		</tr>
		<tr data-order="BINARY" id="BINARY">
			<td align="right" width="1%"><code><b>BINARY</b></code></td>
			<td><code><span class="php-num">2</span></code> <a href="#BINARY" class="anchor">#</a></td>
		</tr>
		<tr data-order="IMAGE" id="IMAGE">
			<td align="right" width="1%"><code><b>IMAGE</b></code></td>
			<td><code><span class="php-num">2</span></code> <a href="#IMAGE" class="anchor">#</a></td>
		</tr>
		<tr data-order="TIMEOUT_SEC" id="TIMEOUT_SEC">
			<td align="right" width="1%"><code><b>TIMEOUT_SEC</b></code></td>
			<td><code><span class="php-num">0</span></code> <a href="#TIMEOUT_SEC" class="anchor">#</a></td>
		</tr>
		<tr data-order="AUTOSEEK" id="AUTOSEEK">
			<td align="right" width="1%"><code><b>AUTOSEEK</b></code></td>
			<td><code><span class="php-num">1</span></code> <a href="#AUTOSEEK" class="anchor">#</a></td>
		</tr>
		<tr data-order="AUTORESUME" id="AUTORESUME">
			<td align="right" width="1%"><code><b>AUTORESUME</b></code></td>
			<td><code>-<span class="php-num">1</span></code> <a href="#AUTORESUME" class="anchor">#</a></td>
		</tr>
		<tr data-order="FAILED" id="FAILED">
			<td align="right" width="1%"><code><b>FAILED</b></code></td>
			<td><code><span class="php-num">0</span></code> <a href="#FAILED" class="anchor">#</a></td>
		</tr>
		<tr data-order="FINISHED" id="FINISHED">
			<td align="right" width="1%"><code><b>FINISHED</b></code></td>
			<td><code><span class="php-num">1</span></code> <a href="#FINISHED" class="anchor">#</a></td>
		</tr>
		<tr data-order="MOREDATA" id="MOREDATA">
			<td align="right" width="1%"><code><b>MOREDATA</b></code></td>
			<td><code><span class="php-num">2</span></code> <a href="#MOREDATA" class="anchor">#</a></td>
		</tr>
		</table>
	</div>





</div>

	<div id="footer">
		Nette Framework API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</body>
</html>
